<?php
include_once "conn.php";
$id = $_POST['id'];
$bookid = $_POST['bookid'];
$main = new main();
$result = $main-> modifabackbook($id,$bookid);
if ($result==2){
    $a['error']= 1;//成功
}
else{
    $a['error']=0;
}
echo json_encode($a);
